{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-header">参数配置</div>
    <div class="layui-card-body" pad15>
        <form action="{:request()->url()}" class="layui-form" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">存储位置</label>
            <div class="layui-input-inline" style="width: 400px;">
                <input type="radio" name="type" value="local" title="本地" {if isset($data) and $data.type eq 'local'}checked="checked"{/if}>
                <input type="radio" name="type" value="qiniu" title="七牛" {if isset($data) and $data.type eq 'qiniu'}checked="checked"{/if}>
                <input type="radio" name="type" value="qcloud" title="腾讯云" {if isset($data) and $data.type eq 'qcloud'}checked="checked"{/if}>
                <input type="radio" name="type" value="aliyun" title="阿里云" {if isset($data) and $data.type eq 'aliyun'}checked="checked"{/if}>
            </div>
            <div class="layui-input-inline layui-input-company"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">AccessKey</label>
            <div class="layui-input-inline" style="width: 400px;">
                <input type="text" name="ak" value="{$data.ak|default=''}" class="layui-input">
            </div>
            <div class="layui-input-inline layui-input-company"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">SecretKey</label>
            <div class="layui-input-inline" style="width: 400px;">
                <input type="text" name="sk" value="{$data.sk|default=''}" class="layui-input">
            </div>
            <div class="layui-input-inline layui-input-company"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">空间bucket</label>
            <div class="layui-input-inline" style="width: 400px;">
                <input type="text" name="bucket" value="{$data.bucket|default=''}" class="layui-input">
            </div>
            <div class="layui-input-inline layui-input-company"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">空间域名</label>
            <div class="layui-input-inline" style="width: 400px;">
                <input type="text" name="domain" value="{$data.domain|default='http://img.ennn.cn/'}" class="layui-input">
            </div>
            <div class="layui-input-inline layui-input-company"></div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
            </div>
        </div>
        </form>
    </div>
</div>
{/block}